package com.bestbuy.serviceimple;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bestbuy.dao.AccountDao;
import com.bestbuy.pojo.Account;
import com.bestbuy.service.AccountService;

@Service
public class AccountServiceImpl implements AccountService
{
	@Autowired
	private AccountDao accountDAO;
	
	@Transactional
	public Account Register(String username, String password) 
	{
		return accountDAO.Register(username, password);
	}

}
